<?php
/**
 * @copyright 2008 cryonyx
 */

class VC_Logger {
	/**
	 * Contains the path to the logfile
	 *
	 * @var string
	 */
	var $logfile;
	
	/**
	 * Constructor of the class
	 *
	 * @param string|null $logfile Path to the logfile. If null, default value is used
	 * @return VC_Logger
	 */
	public function __construct($logfile = NULL) {
		if(!isset($logfile)) {
			$logfile	=	dirname(__FILE__) . '/vc.log';
		}
		
		$this->logfile	=	$logfile;
	}
	
	/**
	 * Logs a message
	 *
	 * @param string $message Message to be logged
	 * @param integer $level The level of message. E_USER constants are used
	 * @param string|null $logfile Patch for using the method without object creation
	 * 
	 * @return boolean
	 */
	public function log($message, $level, $logfile = NULL) {
		if(!isset($logfile)) {
			$logfile	=	$this->logfile;
		}
		
		
	}
}
?>